package com.evil.application.pojo.dto.button;

import com.evil.common.application.dto.button.ButtonSourceDTO;
import lombok.Data;
import lombok.NoArgsConstructor;

import jakarta.validation.constraints.NotNull;
import java.util.Map;

/**
 * 复制自定义按钮
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
@NoArgsConstructor
public class CopyButtonReqDTO {

    /**
     * 复制源
     */
    @NotNull(message = "source not null")
    private ButtonSourceDTO source;

    /**
     * 复制目标
     */
    @NotNull(message = "target not null")
    private ButtonSourceDTO target;

    /**
     * 控件id替换映射
     */
    private Map<Long, Long> controlIdMap;

    /**
     * 更新源信息
     */
    private Boolean updateSource;
}
